package main

import (
	"fmt"
	"strings"
)

func homework3() {
	var builder strings.Builder
	str1 := "abcbbbbbb"
	str2 := "xyzaaaa"
	maxlen := max(len(str1), len(str2))
	for i := 0; i < maxlen; i++ {
		if len(str1) > i {
			builder.WriteByte(str1[i])
		}
		if len(str2) > i {
			builder.WriteByte(str2[i])
		}
	}
	fmt.Printf("%v\n", builder.String())
}
